package com.net.xpay.core.constant;

import java.math.BigDecimal;

/**
 * Created by  on 2017/6/13.
 * 一些基础的常量
 * 环境不一样的放在Config文件里面
 */
public class CoreConstant {
    //通用的
    public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss"; //DateTime序列化的格式

    public static final String HTTP_PREFIX = "http://";

    public static final String HTTPS_PREFIX = "https://";

    public static final String SCHEME_RELATIVE_PREFIX = "//"; //scheme relative url

    //验证码
    public static final int CHECK_CODE_TIME_OUT = 15; //分钟,验证码过期时间

    public static final int CHECK_CODE_INTERVAL = 1; //分钟,请求的频率

    //支付服务费单价 分 平台型
    public static final long DEFAULT_PLATFORM_SERVICE_UNIT_PRICE = 30L;

    //支付服务费单价 分 商家型
    public static final long DEFAULT_MERCHANT_SERVICE_UNIT_PRICE = 50L;

    //商家千2
    public static final BigDecimal DEFAULT_MERCHANT_SERVICE_UNIT_RATIO = new BigDecimal("0.002");

    //平台千2
    public static final BigDecimal DEFAULT_PLATFORM_SERVICE_UNIT_RATIO = new BigDecimal("0.002");

    //游戏平台百2
    public static final BigDecimal DEFAULT_GAME_PLATFORM_SERVICE_UNIT_RATIO = new BigDecimal("0.02");

    public static final long DEFAULT_TAOKE_ORDER_UNIT_PRICE = 10L;

    //合伙人提现最少1元
    public static final long PARTNER_WITHDRAW_MIN_MONEY = 10L;//1毛钱

    //安全付短信验证码收费 1条 5分
    public static final long TRANS_CHECK_CODE_FEE = 5L;


    //转账笔数预警
    public static final long TRANS_WARNING_COUNT = 500L;
    public static final BigDecimal TRANS_WARNING_MONEY = new BigDecimal(100000L);

    //自动付5分钟过期
    public static final long AUTO_PAY_EXPIRED_TIME = 5L;

    //默认一级渠道成本价比例
    public static final BigDecimal DEFAULT_PARTNER_COST_SERVICE_UNIT_RATIO = new BigDecimal("0");

    //默认一级渠道安全付到卡成本价比例
    public static final BigDecimal DEFAULT_PARTNER_SAFE_PAY_BANK_COST_SERVICE_UNIT_RATIO = new BigDecimal("0.000");

    //交易最大免费体验金额
    public static final BigDecimal MAX_TRANS_FREE_AMOUNT = new BigDecimal(100);
}
